package com.atguigu.structure.composite;

public class EduClient {
    public static void main(String[] args) {
        University university = new University("清华大学");

        College college1 = new College("电气工程学院");
        College college2 = new College("计算机信息学院");

        university.add(college1);
        university.add(college2);

        Department department1_1 = new Department("电气工程及其自动化");
        Department department1_2 = new Department("自动化");
        college1.add(department1_1);
        college1.add(department1_2);

        university.print();

    }
}
